package com.mxt.moviedemo.service;

import com.mxt.moviedemo.entity.Directors;
import com.mxt.moviedemo.entity.Geners;
import com.mxt.moviedemo.entity.PageRequest;
import com.mxt.moviedemo.entity.PageResult;

import java.util.List;

public interface DirectorsService {
    PageResult<Directors> searchDirectorsByKeyword(PageRequest pageRequest, String keyword);

    Directors getDirectorById(int did);


    PageResult<Directors> getDirectorsByPage(PageRequest pageRequest);


    List<Directors> searchDirectorsByName(String dname);
    int addDirectors(Directors directors);
    boolean updateDirectors(Directors directors);
    int deleteDirectors(int did);
}